package pojo.entity;


import java.time.LocalDateTime;
import java.util.Objects;

public class User {
    private Integer id;
    private String name;
    private String username;
    private String password;
    private Double money;
    private int status;
    private int online;
    private LocalDateTime lastActionTime;

    public User() {
    }

    public User(Integer id, String name, String username, String password, Double money, int status, int online, LocalDateTime lastActionTime) {
        this.id = id;
        this.name = name;
        this.username = username;
        this.password = password;
        this.money = money;
        this.status = status;
        this.online = online;
        this.lastActionTime = lastActionTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getOnline() {
        return online;
    }

    public void setOnline(int online) {
        this.online = online;
    }

    public LocalDateTime getLastActionTime() {
        return lastActionTime;
    }

    public void setLastActionTime(LocalDateTime lastActionTime) {
        this.lastActionTime = lastActionTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", money=" + money +
                ", status=" + status +
                ", online=" + online +
                ", lastActionTime=" + lastActionTime +
                '}';
    }
}



